Conversation
|
@lemccomb kid is a common COSE header parameter described in Section 3.1 of RFC9052. The RFC specifies allows it to be placed in either header:
Applications that make use of transparency services probably want to use the protected header for kid, since the unprotected header is typically stripped by implementations, as per Section 6.3. of the SCITT Architecture Draft:
It is of course possible for the client to re-attach it post-TS, and so this is not strictly speaking necessary, but it is quite convenient and make key usage transparent as well. |
This PR contains code and test changes to add key identifier (KID) header to the protected headers. KID is a common COSE header parameter that identifies the cryptographic key used for signing.